package UpoopDemo.demo3;

public class Manager extends Employee{
    private int managesalary;
    public Manager(){
        super();
    }
    public Manager(String id, String name, int salary,int managesalary){
        super(id,name,salary);
        this.managesalary = managesalary;
    }
    @Override 
    public void eat(){
        System.out.println("吃米饭");
    }
    @Override 
    public void work(){
        System.out.println("管理他人");
    }
    public int getManageSalary(){
        return this.managesalary;
    }
}
